import Vue from 'vue'
import Router from 'vue-router'
// import { resolve } from 'dns';
/*
                   _ooOoo_
                  o8888888o
                  88" . "88
                  (| -_- |)
                  O\  =  /O
               ____/`---'\____
             .'  \\|     |//  `.
            /  \\|||  :  |||//  \
           /  _||||| -:- |||||-  \
           |   | \\\  -  /// |   |
           | \_|  ''\---/''  |   |
           \  .-\__  `-`  ___/-. /
         ___`. .'  /--.--\  `. . __
      ."" '<  `.___\_<|>_/___.'  >'"".
     | | :  `- \`.;`\ _ /`;.`/ - ` : | |
     \  \ `-.   \_ __\ /__ _/   .-` /  /
======`-.____`-.___\_____/___.-`____.-'======
                   `=---='
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         佛祖保佑       BUGshaoyodian
*/
// Router.prototype.goBack = function () {
//   this.isBack = true
//   window.history.go(-1)
// }
// const index = resolve => require(['@/views/index'], resolve)
// const send = resolve => require(['@/views/send'], resolve)

Vue.use(Router)

export default new Router({
  mode: 'history',
  strict: process.env.NODE_ENV !== 'production',
  routes: [
    {
      path:'/',
      name:'index',
      component:resolve => require(['@/views/index'],resolve)
    },
    {
      path:'/send',
      name:'send',
      component:resolve => require(['@/views/send'],resolve)
    }
  ]
})
